package com.ougy.reshop.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.ougy.reshop.model.Publish;
import com.ougy.reshop.service.ISPublish;

@Service
public class SPublish extends BaseServices implements ISPublish{
	@Override
	public void post(Publish pub) {
		publishDao.save(pub);
	}

	@Override
	public List<Publish> search(String word) {
		return publishDao.search(word,1,20);
	}

}
